import request from '@/common/request/index.js'
// 用户信息
// 用户注册
export function register (param) {
	return request ('/hospital/user/register', param, 'post')
}
//用户登录
export function login (param) {
	return request ('/hospital/user/login', param, 'get')
}
// 获取所有医生
export function getAllDoctorName (param) {
	return request ('/hospital/user/getAllDoctorName', param, 'get')
}
//挂号记录
//添加
export function addReg (param) {
	return request ('/hospital/registration/addRegistration', param, 'post')
}
//删除
export function delReg (param) {
	return request ('/hospital/registration/deleteRegistration', param, 'get')
}
//医生查看
export function doctorView (param) {
	return request ('/hospital/registration/list', param, 'get')
}
//用户查看
export function userView (param) {
	return request ('/hospital/registration/look', param, 'get')
}

//体检记录
//添加或修改
export function addUpdatetj (param) {
	return request ('/hospital/medical-record/addOrUpdateMedicalRecord', param, 'post')
}
//查看体检结果
export function viewtj (param) {
	return request ('/hospital/medical-record/getResult', param, 'get')
}
//用户咨询问题
//添加
export function addQuestion (param) {
	return request ('/hospital/question/addQuestion', param, 'post')
}
//回答
export function answer (param) {
	return request ('/hospital/question/answer', param, 'post')
}
//查看详情
export function detailQuestion (param) {
	return request ('/hospital/question/detail', param, 'get')
}
//查看列表
export function viewquestionList (param) {
	return request ('/hospital/question/list', param, 'get')
}


//医疗保健
// 添加修改
export function updateList (param) {
	return request ('/hospital/health-care-knowledge/addOrUpdate',param,'POST')
}

// 查看列表
export function getList (param) {
	return request ('/hospital/health-care-knowledge/list',param,'GET')
}
//删除
export function getdelete (param) {
	return request ('/hospital/health-care-knowledge/delete',param,'GET')
}

//查看详情
export function getDetail (param) {
	return request ('/hospital/health-care-knowledge/detail',param,'GET')
}
//点赞
export function getLike (param) {
	return request ('/hospital/health-care-knowledge/like',param,'GET')
}